/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-26     liuchao       the first version
 */
#include "device.h"

device_statue_e device_status()
{
    int auto_mode = btn_state(BTN_AUTO);
    int manual_mode = btn_state(BTN_MANUAL);
    if (auto_mode)
    {
        return DEVICE_STATUS_AUTO;
    }
    else if (manual_mode)
    {
        return DEVICE_STATUS_MANUAL;
    }
    return DEVICE_STATUS_UNKNOWN;
}
